type encoding/json/v2.structField
18 uses
encoding/json/v2 (current package)
arshal_embedded.go#L40: func marshalEmbeddedFallbackAll(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct, f *structField, insertUnquotedName func([]byte) bool) error {
arshal_embedded.go#L169: func unmarshalEmbeddedFallbackNext(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct, f *structField, quotedName, unquotedName []byte) error {
fields.go#L32: flattened []structField // listed in depth-first ordering
fields.go#L33: byActualName map[string]*structField
fields.go#L34: byFoldedName map[string][]*structField
fields.go#L35: embeddedFallback *structField
fields.go#L46: reindex := func(f *structField) {
fields.go#L63: func (fs *structFields) lookupByFoldedName(name []byte) []*structField {
fields.go#L67: type structField struct {
fields.go#L97: var allFields, embeddedFallbacks []structField
fields.go#L119: f := structField{
fields.go#L293: slices.SortStableFunc(allFields, func(x, y structField) int {
fields.go#L313: slices.SortFunc(flattened, func(x, y structField) int {
fields.go#L322: slices.SortFunc(flattened, func(x, y structField) int {
fields.go#L330: byActualName: make(map[string]*structField, len(flattened)),
fields.go#L331: byFoldedName: make(map[string][]*structField, len(flattened)),
fields.go#L344: slices.SortFunc(fields, func(x, y *structField) int {
fields.go#L380: func (f *structField) matchFoldedName(name []byte, flags *jsonflags.Flags) bool {